/**
* @file			keypad.c
* @author  		Madawa Rathnayaka
* @date    		December 06, 2014
*/

/* Includes ------------------------------------------------------------------*/
#include <stm32f0xx.h>
#include "LCD.h"
#include "keypadwrite.h"
#include "arduino.h"

int test_code;

// Implementation of the print_keypad()
void print_keypad(){
	
int test = read_code();

	LCD_write(test);

}


// To see whether the required code is output
void verify_code(){
test_code = 3476;
	
while(1){};
	if (test_code==read_code()){
	digitalwrite(10);
		
	}
	else {
	digitalwrite(11);
	
	}


}